package com.ml.mall.entity.deduct;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "sys_a_deduct")
public class SysADeduct implements Serializable {
    /**
     * 主键id，此处主键id，由人为控制，一般总是固定为1
     */
    @TableId(value = "id", type = IdType.INPUT)
    private Long id;

    /**
     * 创建时间
     */
    @TableField(value = "create_at",fill = FieldFill.INSERT)
    private Date createAt;

    /**
     * 更新时间
     */
    @TableField(value = "update_at",fill = FieldFill.INSERT_UPDATE)
    private Date updateAt;

    /**
     * 标题
     */
    @TableField(value = "deduct_name")
    private String deductName;

    /**
     * 内容
     */
    @TableField(value = "deduct_rate")
    private BigDecimal deductRate;

    /**
     * 1:5分位算法；2: 10分位算法；算钱小数点用
     */
    @TableField(value = "cent_type")
    private Integer centType;

    private static final long serialVersionUID = 1L;
}